package org.yoyo.classroom.mapper;

import org.apache.ibatis.annotations.Param;
import org.yoyo.classroom.domain.po.Permission;

import java.util.List;

public interface PermissionMapper {
    List<Permission> findPermissionsByUsername(@Param("username") String username);
    List<Permission> selectAll();
    Permission selectById(@Param("id") Long id);
    int insert(Permission permission);
    int updateById(Permission permission);
    int deleteById(@Param("id") Long id);
    List<Permission> findPermissionByRoleId(@Param("roleId") Integer roleId);
}
